let navlist = require('./mock/navlist.json');
let list = require('./mock/list.json');
module.exports = {
    devServer:{
        before(app){
            app.get('/api/navList',(req,res) => {
                res.send({
                    code:1,
                    data:navlist
                })
            })

            app.get('/api/list',(req,res) => {
                res.send({
                    code:1,
                    data:list
                })
            })
        }
    }
}